version: '3.8'
services:
  dataBase:
    image: postgres:15
    environment:
      POSTGRES_DB: "sber"
      POSTGRES_USER: "sber"
      POSTGRES_PASSWORD: "passWORD"
    ports:
      - "5431:5432"
    restart: always
  api:
    build: ./api
    ports:
      - '8888:8888'
    environment:
      HOST: ${HOST}
    depends_on:
      - dataBase
    external_links:
      - dataBase